package spar.cancer;

import spar.cancer.config.CancerConfig;

import java.io.IOException;

public class CancerTestCancer {
    public static void main(String[] args) throws IOException, InterruptedException {
        Cancer<Double> front = new Cancer<>("front");
        Cancer<Double> back = new Cancer<>("back");
        Cancer<Double> left = new Cancer<>("left");
        Cancer<Double> right = new Cancer<>("right");

        //init
        Cancer.Init(new CancerConfig("src/test/resources/cancer.conf"));

        //main iter loop
        while (Cancer.hasNextEcxtData()) {
            Cancer.check(front, back, left, right);
            System.out.println("{" + front + "," + back + "," + left + "," + right + "}");
        }
    }
}
